﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Objects.DataClasses;
using Headlight.Model;

namespace Headlight.Domain.Repositories
{
	public class ContactRepository
	{
        private EFDbContext context = new EFDbContext();

        public IQueryable<Contact> Contacts
        {
            get { return context.Contacts; }
        }

        public void SaveProduct(Contact contact)
        {
            if (contact.ContactID == 0)
            {
                context.Contacts.Add(contact);
            }
            context.SaveChanges();
        }

		
	}
}